Skip to content

fix: nightly CI failures + workaround RUSTFLAGS cargo-make leak#49

Open
wmmc88 wants to merge 2 commits intomicrosoft:mainfrom
wmmc88:fix/unnecessary-trailing-commas
Open

fix: nightly CI failures + workaround RUSTFLAGS cargo-make leak#49
wmmc88 wants to merge 2 commits intomicrosoft:mainfrom
wmmc88:fix/unnecessary-trailing-commas

Conversation

@wmmc88
Copy link
Collaborator

@wmmc88 wmmc88 commented Feb 28, 2026

Changes

1. Fix nightly clippy + rustfmt failures

Edits to pass new nightly clippy::unnecessary_trailing_comma lint and nightly rustfmt import reordering.

  • Remove 4 unnecessary trailing commas in format!/println! macros (general/echo/kmdf/exe/src/main.rs)
  • Reorder underscore-prefixed imports to match nightly rustfmt sorting (device.rs, queue.rs, driver.rs)

Failed CI run: https://github.com/microsoft/Windows-rust-driver-samples/actions/runs/22519532366

2. Workaround RUSTFLAGS leaking into cargo-make/cargo-wdk builds

Unset RUSTFLAGS for cargo make, cargo wdk install, and cargo wdk build steps in build.yaml. This prevents -D warnings from leaking into rust-script compilation of wdk-build (which is treated as a path dependency via symlink, bypassing cargo's --cap-lints allow).

Temporary workaround until microsoft/windows-drivers-rs#629 is merged and a new wdk-build is published.

- Remove unnecessary trailing commas in format!/println! macros to pass
  new nightly clippy::unnecessary_trailing_comma lint
- Reorder underscore-prefixed imports to match nightly rustfmt sorting
@wmmc88 wmmc88 force-pushed the fix/unnecessary-trailing-commas branch from 1f202f0 to de907c7 Compare February 28, 2026 17:57
@wmmc88 wmmc88 changed the title fix: unnecessary trailing commas in format! macros fix: nightly CI failures + workaround RUSTFLAGS cargo-make leak Mar 8, 2026
Unset RUSTFLAGS for the cargo-make step in build.yaml to prevent -D warnings
from leaking into rust-script compilation of wdk-build. Only cargo-make is
affected since it uses rust-script to compile inline build scripts where
wdk-build is a path dependency (via symlink), bypassing cargo's --cap-lints.
cargo-wdk and cargo install are normal cargo operations with proper
--cap-lints handling and do not need this workaround.

Temporary workaround until microsoft/windows-drivers-rs#629 is merged and
a new wdk-build is published.

Tracked in ADO Bug #5396440.
@wmmc88 wmmc88 force-pushed the fix/unnecessary-trailing-commas branch from 1683801 to bcbb043 Compare March 9, 2026 23:30
@wmmc88 wmmc88 requested a review from a team March 9, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants